<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

$this->title = '找回密码';
?>
<div class="col-md-4"></div>
<div class="login-box col-md-4">
    <div class="login-logo">
        <a href="#"><b>找回密码</b></a>
    </div>
    <!-- /.login-logo -->
    <div class="login-box-body">
        <!--<p class="login-box-msg">Sign in to start your session</p>-->

		<?php $form = ActiveForm::begin(['id' => 'email-form', 'enableClientValidation' => false]); ?>

		<?=
				$form
				->field($model, 'username')
				->label(false)
				->textInput(['placeholder' => $model->getAttributeLabel('用户名')])
		?>

		<?=
				$form
				->field($model, 'email')
				->label(false)
				->textInput(['placeholder' => $model->getAttributeLabel('邮箱')])
		?>
		<input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">  
        <div class="row">
			<div class="col-md-6">
				<a class="btn-block btn-lg btn btn-info" href="<?php echo yii\helpers\Url::toRoute('site/login'); ?>">
					返回登录
				</a>
			</div>
			<div class="col-md-6">
				<?= Html::submitButton('找回密码', ['class' => 'btn-block btn-lg btn btn-warning']) ?>
			</div>
        </div>
        <div class="row">
            <div class="col-xs-9">

            </div>
            <div class="col-xs-3">

            </div>
        </div>


		<?php ActiveForm::end(); ?>
    </div>
    <!-- /.login-box-body -->
</div><!-- /.login-box -->
<div class="col-md-4"></div>